/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Project;

import Common.IPlatform;
import Common.IProjecModelFactory;
import Common.IProjectModel;

/**
 *
 * @author Администратор
 */
public class ProjectModelFactory implements IProjecModelFactory{

    public IProjectModel CreateProjectModel(IPlatform platform) {
        ProjectModel p = new ProjectModel();
        if(platform instanceof IPlatform){
            ((Platform)platform).setProjectModel(p);
        }
        return p;
    }
}
